package com.ncepu.thumb.service;

import com.ncepu.thumb.model.dto.AddBlogRequest;
import com.ncepu.thumb.model.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ncepu.thumb.model.vo.BlogVO;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author 14563
* @description 针对表【blog】的数据库操作Service
* @createDate 2025-05-10 21:18:20
*/
public interface BlogService extends IService<Blog> {

    /**
     * 根据id获取博客
     * @param blogId
     * @param request
     * @return
     */
    BlogVO getBlogVOById(long blogId, HttpServletRequest request);

    /**
     * 获取博客列表
     * @param BlogList
     * @param request
     * @return
     */
    List<BlogVO> getBlogVOList(List<Blog> BlogList, HttpServletRequest request);

    /**
     * 添加博客
     * @param addBlogRequest
     * @param request
     * @return
     */
    Boolean addBlog(AddBlogRequest addBlogRequest, HttpServletRequest request);
}
